import React from 'react'
import { Link, Switch } from 'react-router-dom';
import './Header.css';

const Header = () => {
    return (
        <div className='header-wrap'>
            <div className='header'>
                <img className='logo' src='http://static2.cnodejs.org/public/images/cnodejs_light.svg'></img>
                <div>
                    <Link to='/'>首页</Link>
                    <Link to='/new'>新手入门</Link>
                    <Link to='/api'>API</Link>
                    <Link to='/login'>登录</Link>
                </div>
            </div>
        </div>
    )
}

export default Header